<style>
/*.main-sidebar, .left-side{top:50px;}*/
</style>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found   in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">
			<img src="${ctx}/images/plateform/person2.png" class="img-circle"/>
        </div>

		  <div class="pull-left info">
			  <p>${loginUser.userCname}</p>
			  <a href="${page_admin}/account/index">
				  <i class="fa fa-home"></i> 账户基本信息
			  </a>
		  </div>

      </div>
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="header"></li>
	<#if (loginUser.sysFlag =='2') >
		  <li class="treeview" userKey="">
			  <a href="javascript:void('0');">
				  <i class="fa fa-user"></i> <span>账号管理</span><i class="fa fa-angle-left pull-right"></i>
			  </a>
			  <ul class="treeview-menu" >
				  <li id="sys-user-list" class="" userKey=""><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/account/user-manager-list"><i class="fa fa-circle-o"></i>系统管理员</a></li>
			  </ul>
		  </li>
	</#if>
	<#if (loginUser.sysFlag =='1'||loginUser.sysFlag =='2') >
			  <li class="treeview " userKey="">
				  <a href="javascript:void('0');">
					  <i class="fa fa-cog"></i> <span>机构管理</span><i class="fa fa-angle-left pull-right"></i>
				  </a>
				  <ul class="treeview-menu" >
					  <li id="org-list" class="" userKey=""><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/account/org-list"><i class="fa fa-circle-o"></i>机构管理</a></li>
					  <li id="org-user-list" class="" userKey=""><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/account/org-user-list"><i class="fa fa-circle-o"></i>机构管理员</a></li>
						<#if (loginUser.sysFlag =='1') >
					  	<li id="org-user-list-audit" class="" userKey=""><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/account/org-user-list-audit"><i class="fa fa-circle-o"></i>管理员审核</a></li>
						</#if>
				  </ul>
			  </li>
	</#if>

		  <li class="treeview" userKey="">
			  <a href="javascript:void('0');">
				  <i class="fa fa-sitemap"></i> <span>用户管理</span><i class="fa fa-angle-left pull-right"></i>
			  </a>
			  <ul class="treeview-menu" >
				  <li id="user-customer-list" class="" userKey=""><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/account/user-customer-list"><i class="fa fa-circle-o"></i>机构普通用户</a></li>
			  </ul>
		  </li>

      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>
  

  <script>
  	 	//part1、注入jquery.pjax 绑定A标签点击事件
      	$(document).pjax("[data-pjax='true'], a[data-pjax='true']", ".content-wrapper", {
       		fragment: ".content-wrapper"
      	});
	  	//$(document).pjax('a', '#pjax-container');
	  	$(document).on("pjax:send", function() { 
			//alert("发送完成");
		}); 
		$(document).on("pjax:complete", function(resultData) { 
	  		//alert("加载完成");
	  		showClickMenu();
		});
		
		//part2、注入jquery.load 绑定A标签load事件
		$("[data-load='true']").each(function(){
			var thisHref = $(this).attr("href");
			$(this).attr("load-url",thisHref);
			$(this).attr("href","javascript:;");
			$(this).click(function(){
				$("#main-body").load(thisHref+" .content-wrapper",function(resultData){
					 //alert(resultData);
					 $result = $(resultData); 
			         $result.find("script").appendTo("#main-body");//保证子页面的js内容能被引入进来
				});
			});
		});
 </script>

